﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CodeGame.ServerObjects;

namespace CodeGame.Networking.Serverside.ClientServerPackets
{
    class ResoucesAmountPacket : ServerPacket
    {
        public override ClientServerNet GetID()
        {
            return ClientServerNet.ResoucesCountRequest;
        }

        public override void Handle(Lidgren.Network.NetIncomingMessage message, Lidgren.Network.NetConnection sender)
        {
            ServerSingletons.Players.GetPlayer(sender).SendResouceAlert();
        }

    }
}
